home *** CD-ROM | disk | FTP | other *** search
File List | 1986-09-20 | 3.7 KB | 96 lines |
- Microsoft (R) Macro Assembler Version 4.00 9/20/86 19:33:31
-
- Page 1-1
-
-
- C include macros.asm
- C .LIST
-
- Begincom hardlock
- 0100 E9 033F R jmp start
- 0103 48 61 72 64 6C 6F 63 msg0 db 'Hardlock Completed Sucessfully',10,13,'$'
- 6B 20 43 6F 6D 70 6C
- 65 74 65 64 20 53 75
- 63 65 73 73 66 75 6C
- 6C 79 0A 0D 24
- 0124 48 61 72 64 6C 6F 63 msg1 db 'Hardlock Disk I/O error.',10,13,'$'
- 6B 20 44 69 73 6B 20
- 49 2F 4F 20 65 72 72
- 6F 72 2E 0A 0D 24
-
- 013F 0200[ buffer db 512 dup(?)
- ??
- ]
-
-
- 033F start proc near
- 033F B8 0201 mov ax,0201h ;read one sector
- 0342 8D 1E 013F R lea bx,buffer ;set up read address
- 0346 B9 0001 mov cx,1 ;read the partition table
- 0349 BA 0080 mov dx,0080h ;On drive C
- 034C CD 13 int 13H ;execute read
- 034E 72 10 jc IO_FAIL ;if carry - issue message
- 0350 C6 87 01FF 00 mov byte ptr [bx+511],0 ;make disk unusable
- 0355 B8 0301 mov ax,0301h ;set up write command
- 0358 CD 13 int 13H
- 035A 8D 16 0103 R lea dx,msg0 ;point to OK message
- 035E 73 04 jnc SENDMSG ;display msg
- 0360 8D 16 0124 R IO_FAIL: lea dx,msg1 ;point to failure message
- 0364 B4 09 SENDMSG: mov ah,9 ;dos display string
- 0366 CD 21 int 21h ;send message
- 0368 CD 20 int 20h ;terminate program
- start endp
- endcom hardlock
-
- Microsoft (R) Macro Assembler Version 4.00 9/20/86 19:33:31
-
- Symbols-1
-
-
- Macros:
-
- N a m e Lines
-
- @DEX . . . . . . . . . . . . . . 4
- @DOS . . . . . . . . . . . . . . 4
- @MSG . . . . . . . . . . . . . . 12
- @SVC . . . . . . . . . . . . . . 4
- BEGINCOM . . . . . . . . . . . . 6
- BIOSM . . . . . . . . . . . . . 132
- COMEQ . . . . . . . . . . . . . 24
- DEFS . . . . . . . . . . . . . . 3
- ENDCOM . . . . . . . . . . . . . 2
- KEYEQ . . . . . . . . . . . . . 86
-
- Segments and Groups:
-
- N a m e Size Align Combine Class
-
- HARDLOCK . . . . . . . . . . . . 036A PARA NONE 'CODE'
-
- Symbols:
-
- N a m e Type Value Attr
-
- BUFFER . . . . . . . . . . . . . L BYTE 013F HARDLOCK Length = 0200
-
- IO_FAIL . . . . . . . . . . . . L NEAR 0360 HARDLOCK
-
- MSG0 . . . . . . . . . . . . . . L BYTE 0103 HARDLOCK
- MSG1 . . . . . . . . . . . . . . L BYTE 0124 HARDLOCK
-
- O0O0O0O0 . . . . . . . . . . . . L NEAR 0100 HARDLOCK
-
- SENDMSG . . . . . . . . . . . . L NEAR 0364 HARDLOCK
- START . . . . . . . . . . . . . N PROC 033F HARDLOCK Length = 002B
-
-
- 384 Source Lines
- 393 Total Lines
- 40 Symbols
-
- 49232 Bytes symbol space free
-
- 0 Warning Errors
- 0 Severe Errors
-